package com.hjxr.quota.define.domain;

import java.math.BigDecimal;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 维度与预指标关系表
 * </p>
 *
 * @author sun
 * @since 2020-10-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("QUOTA_DIMENSION_RELATION")
@ApiModel(value="QuotaDimensionRelation对象", description="维度与预指标关系表")
@KeySequence(value = "seq_quota_value", clazz = Integer.class)
public class QuotaDimensionRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增主键")
    @TableId(value = "ID", type = IdType.INPUT)
    private Integer id;

    @ApiModelProperty(value = "一级维度id")
    private Integer dimensionId;

    @ApiModelProperty(value = "预指标ID")
    private Integer quotaId;

    @ApiModelProperty(value = "更新时间", hidden = true)
    @JSONField(format = "yyyy/MM/dd")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateDate;


}
